package demo.example.service;

import demo.example.common.PageRequest;
import demo.example.common.PageResult;
import demo.example.model.pojo.Message;

import java.util.List;



public interface  MessageService {


    Message getMessage(String phone);

    int insertMessage(Message record);

    List<Message> getAllMessage();

    List<Message> getAllMessage(Message message);

    int deleteByPhone(String phone);

    PageResult selectAllMessageByPage(PageRequest pageRequest);

    PageResult selectAllByMessage(Message message,PageRequest pageRequest);
}

